import { createRouter, createWebHistory, RouteRecordRaw } from "vue-router";

const routes: RouteRecordRaw[] = [
  {
    path: "/",
    name: "HomePage",
    component: () => import("@/view/HomePage.vue") // 注意这里要带上 文件后缀.vue
  },
  {
    path: "/test",
    name: "TestStore",
    component: () => import("@/view/TestStore.vue") // 注意这里要带上 文件后缀.vue
  },
  {
    path: "/swiper",
    name: "SwiperPage",
    component: () => import("@/view/SwiperPage.vue") // 注意这里要带上 文件后缀.vue
  }
];

const router = createRouter({
  history: createWebHistory(),
  routes
});

export default router;
